<!DOCTYPE html >
<html>
<head>
    <link rel="stylesheet" href="demos.css" type="text/css" media="screen" />
    
    <script type="text/javascript" src="../libraries/RGraph.common.core.js" ></script>
    <script type="text/javascript" src="../libraries/RGraph.bar.js" ></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <!--[if lt IE 9]><script src="../excanvas/excanvas.js"></script><![endif]-->
    
    <title>A Bar chart showing search result clickthru rates</title>
    
    <meta name="robots" content="noindex,nofollow" />
    <meta name="description" content="A Bar chart showing search result clickthru rates" />
    
</head>
<body>

    <h1>A Bar chart showing search result clickthru rates</h1>

    <canvas id="cvs" width="700" height="350">[No canvas support]</canvas>
    
    <script>
        $(document).ready(function ()
        {
            var data = [36.4,12.5,9.5,7.9,6.1,4.1,3.8,3.5,3.0,2.2];

            var bar = new RGraph.Bar({
                id: 'cvs',
                data: data,
                options: {
                    background: {
                        grid: {
                            autofit: {
                                numvlines: 10
                            }
                        }
                    },
                    gutter: {
                        bottom: 40,
                        left: 60
                    },
                    units: {
                        post: '%'
                    },
                    title: {
                        xaxis: {
                            self: 'Google position',
                            y: 340
                        },
                        yaxis: {
                            self: 'Clickthru rate',
                            x: 20
                        }
                    },
                    labels: {
                        self: [ 'One','Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten'],
                        above: {
                            self: true,
                            decimals: 1,
                            size: 12
                        }
                    },
                    noxaxis: true
                }
            }).draw();
        })
    </script>

    <p>
        <a href="./">&laquo; Back</a>
    </p>

</body>
</html>